const router = require('koa-router')()

const user = require('./user')

const apply = require('./apply')
const notice = require('./notice')
const credent = require('./credential')
const admin = require('./admin')

router.use('/api', user.routes(), user.allowedMethods())


// 活动路由
router.use('/api', apply.routes(), apply.allowedMethods())
//公告路由
router.use('/api', notice.routes(), notice.allowedMethods())
// 用户中心
router.use('/api', credent.routes(), credent.allowedMethods())
// 后台路由
router.use('/api',admin.routes(),admin.allowedMethods())


const test = require('./test')
router.use('/test', test.routes(), test.allowedMethods())

module.exports = router